package com.example.jdk8.functionalinterface;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/07/09/15:52
 * @Description:接下来我们指定一个用来创建Person对象的对象工厂接口
 */
public interface PersonFactory<P extends Person> {

    P create(String firstName,String lastName);
}
